.file-match-children {
    // stylelint-disable-next-line declaration-property-unit-whitelist
    margin-top: -1px;

    &__item {
        text-decoration: none; // don't use cascading link style
        display: flex;
        align-items: center;
        padding: 0.25rem 0.5rem;
        overflow-x: auto;
        overflow-y: hidden;

        &-clickable {
            cursor: pointer;
        }

        &:hover {
            text-decoration: none;
        }

        &:not(:first-child) {
            border-top: 1px solid var(--border-color);
        }
    }

    &__code {
        border-bottom: solid 1px var(--border-color);
        font-size: 12px;
        padding: 0.5rem 1.25rem;
        margin-bottom: 0;
        > code {
            display: block;
            > a {
                color: inherit;
            }
            &::before {
                content: attr(data-line);
                opacity: 0.65;
                padding-right: 0.325rem;
                display: inline-block;
            }
        }
    }
}

.theme-dark {
    .file-match-children {
        &__item {
            background-color: $color-bg-4;
        }
    }
}

.theme-light {
    .file-match-children {
        &__item {
            background-color: $color-light-bg-1;
        }
    }
}
